<?php $this->set('title', 'Login to CellSurv'); ?>
<table class="centermargin">
<tr> <td>
<span class="center"><?php $session->flash('register'); ?></span>
<?php echo($form->create('User', array('type' => 'post', 'action' => 'login'))); ?>
<!-- Start Table -->
<table class="centermargin">
<tr> <td class="right">Username:</td> <td class="left"><?php echo($form->text('User.username')); ?></td> </tr>
<tr> <td class="right">Password:</td> <td class="left"><?php echo($form->password('User.password')); ?></td></tr>
<tr> <td class="center" colspan="2"> <?php echo($form->checkbox('User.rememberMe').$form->label('Remember me')); ?> </td> </tr>
<tr> <td class="center" colspan="2"> <?php echo($form->submit('Sign In')); ?> </td> </tr>
<tr> <td class="center" colspan="2"> <?php echo($html->link('Forgot your Username/Password?', array('controller' => 'users', 'action' => 'forgot_password'))); ?></td> </tr>
</table>
<!-- End Table -->
<?php echo($form->end()); ?>
</td>

<td class="center">
<?php echo($form->create('User', array('type' => 'get', 'controller' => 'users', 'action' => 'register'))); ?>
<h3>Don't have an account?</h3>
<?php echo($form->submit('Register')); ?>
<?php echo($form->end()); ?>
</td>
</tr> </table>
